<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Title</title>
    <link rel="stylesheet" href="./css/layui.css">
    <link rel="stylesheet" href="./css/style.css">
</head>
<body>
<div class="header">
    <div class="layui-container">
        <div class="logo">
            <a href="" title="Layui">Layui</a>
        </div>
        <i class="layui-icon layui-icon-app mobile-icon"></i>
        <div class="nav">
            <ul class="layui-nav">
                <li class="layui-nav-item layui-this"><a href="">网站首页</a></li>
                <li class="layui-nav-item"><a href="">产品</a></li>
                <li class="layui-nav-item"><a href="">活动</a></li>
                <li class="layui-nav-item"><a href="">资讯</a></li>
                <li class="layui-nav-item"><a href="">专题</a></li>
                <li class="layui-nav-item"><a href="">大数据</a></li>
                <li class="layui-nav-item"><a href="">社区</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="layui-container main">
    <div class="layui-row layui-col-space10">
        <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
            <div class="demoBox">this is a demo box</div>
        </div>
        <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
            <div class="demoBox">this is a demo box</div>
        </div>
        <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
            <div class="demoBox">this is a demo box</div>
        </div>
        <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
            <div class="demoBox">this is a demo box</div>
        </div>
        <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
            <div class="demoBox">this is a demo box</div>
        </div>
    </div>
</div>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="layui.js"></script>
<script>
    //JavaScript代码区域
    layui.use(['element', 'layer'], function () {
        var element = layui.element;
        var layer = layui.layer;

    });
    $(".mobile-icon").click(function () {
       $(".nav").toggleClass('layui-show');
    });
</script>
</body>
</html>